Posts

Post marked as solved
7 Replies
Any update on this issue ? I also assumed combining 2 drag gestures to pan with 2 fingers not just one should be as easy as this: var move: some Gesture {     return DragGesture().simultaneously(with: DragGesture())       .updating($offset){ value, state, transaction in // compute state based on value.first and value.second     }   } However, this gesture only gets triggered when the user drags with 1 finger instead of 2. Another issue is that the pinch example from HIGs https://developer.apple.com/design/human-interface-guidelines/ios/user-interaction/gestures/ shows how the zoom is done depending on where the user pinches not always in the center of the image. This isn't currently possible to implement by only using MagnificationGesture as it only provides a CGFloat and no information of the offset we should apply when zooming. Currently I don't see a way for implementing pinch to zoom like in the Photos app using only SwiftUI, please correct me if I'm wrong.